home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / ODF / OS / FWGraphx / Include / FWFontLi.h < prev    next >
Encoding:
Text File  |  1995-11-08  |  2.1 KB  |  91 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWFontLi.h
  4. //    Release Version:    $ 1.0d11 $
  5. //
  6. //    Copyright:    © 1995 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10.  
  11. #ifndef FWFONTLI_H
  12. #define FWFONTLI_H
  13.  
  14. // ----- Foundation Layer -----
  15.  
  16. #ifndef FWEXCLIB_H
  17. #include "FWExcLib.h"
  18. #endif
  19.  
  20. // ----- ODUtil -----
  21.  
  22. #ifndef FWORDCOL_H
  23. #include "FWOrdCol.h"
  24. #endif
  25.  
  26. #if FW_LIB_EXPORT_PRAGMAS
  27. #pragma lib_export on
  28. #endif
  29.  
  30. //========================================================================================
  31. // Forward declarations
  32. //========================================================================================
  33.  
  34. class FW_CLASS_ATTR FW_CFontIterator;
  35. class FW_CLASS_ATTR FW_CIntlString;
  36.  
  37. //========================================================================================
  38. // CLASS FW_CFontList
  39. //========================================================================================
  40.  
  41. class FW_CLASS_ATTR FW_CFontList FW_AUTO_DESTRUCT_OBJECT
  42. {
  43. public:
  44.     FW_DECLARE_CLASS
  45.  
  46. public:
  47.     FW_CFontList();
  48.     virtual~FW_CFontList();
  49.  
  50. private:
  51.     FW_CPrivOrderedCollection fFontList;
  52.     
  53.     friend FW_CFontIterator;
  54. };
  55.  
  56. //========================================================================================
  57. // CLASS FW_CFontInterator
  58. //========================================================================================
  59.  
  60. class FW_CLASS_ATTR FW_CFontIterator FW_AUTO_DESTRUCT_OBJECT
  61. {
  62. public:
  63.     FW_CFontIterator(); 
  64.     FW_CFontIterator(FW_CFontList* fontList); 
  65.     virtual ~FW_CFontIterator();
  66.  
  67.     FW_CIntlString    First();
  68.         // Returns an empty string if the list is empty
  69.     FW_CIntlString    Next();
  70.         // Returns an empty string if at the end of the list
  71.     FW_CIntlString    Last();
  72.         // Returns an empty string if the list is empty
  73.     FW_CIntlString    Previous();
  74.         // Return an empty string if at the beginning of the list
  75.     
  76.     FW_Boolean            IsNotComplete();
  77.  
  78. private:
  79.     FW_CFontList*    fFontList;
  80.     FW_Boolean        fDeleteTheList;
  81.     FW_COrderedCollectionIterator* fIterator;
  82. };
  83.  
  84. #if FW_LIB_EXPORT_PRAGMAS
  85. #pragma lib_export off
  86. #endif
  87.  
  88. #endif
  89.  
  90.  
  91.